"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var fcLog;
(function (fcLog) {
    function get(params) {
        return function (target, methodName, desc) {
            console.log(target);
            console.log(methodName);
            console.log(desc);
        };
    }
    var HttpClient = (function () {
        function HttpClient() {
        }
        HttpClient.prototype.getData = function () {
            console.log(this.url);
        };
        __decorate([
            get('http://www.itying.com')
        ], HttpClient.prototype, "getData", null);
        return HttpClient;
    }());
    var http = new HttpClient();
    console.log(http.apiUrl);
    http.run();
})(fcLog || (fcLog = {}));
var fcLog2;
(function (fcLog2) {
    function get(params) {
        return function (target, methodName, desc) {
            console.log(target);
            console.log(methodName);
            console.log(desc.name);
            var oMethod = desc.value;
            desc.value = function () {
                var args = [];
                for (var _i = 0; _i < arguments.length; _i++) {
                    args[_i] = arguments[_i];
                }
                args = args.map(function (value) {
                    return String(value);
                });
                oMethod.apply(this.args);
            };
        };
    }
    var HttpClient = (function () {
        function HttpClient() {
        }
        HttpClient.prototype.getData = function () {
            var args = [];
            for (var _i = 0; _i < arguments.length; _i++) {
                args[_i] = arguments[_i];
            }
            console.log(args);
            console.log('我是getData里面的方法');
        };
        __decorate([
            get('http://www.itying.com')
        ], HttpClient.prototype, "getData", null);
        return HttpClient;
    }());
    var http = new HttpClient();
    http.getData(123, 'xxx');
    console.log(http.apiUrl);
})(fcLog2 || (fcLog2 = {}));
